package com.lzh.farmersshop.entity;

import java.util.Date;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * (Evaluation)实体类
 *
 * @author makejava
 * @since 2024-01-04 15:37:10
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Evaluation implements Serializable {
    private static final long serialVersionUID = 330935392317142534L;
    /**
     * 评价id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 商品id
     */
    private Integer goodsid;
    /**
     * 用户id
     */
    private Integer userid;
    /**
     * 评价内容
     */
    private String content;
    /**
     * 评价时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date time;
    /**
     * 评价分数
     */
    private Integer score;
    /**
     * 回复内容
     */
    private String hfcontent;
    /**
     * 回复时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date hftime;
    /**
     * 1公开2不公开
     */
    private Integer state;
    /**
     * 1正常2已删除
     */
    private Integer isdelete;
    /**
     * 用户名称
     */
    @TableField(exist = false)
    private String username;
    /**
     * 商品图
     */
    @TableField(exist = false)
    private String img;
    /**
     * 商品名称
     */
    @TableField(exist = false)
    private String title;
    /**
     * 商品描述
     */
    @TableField(exist = false)
    private String describe;


}
